import { createApp } from 'vue'
// 引入 element-plus 组件与样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register'
import GlobalComponents from '@/components'
import '@/styles/index.scss'
import App from './App.vue'
import router from './router'

const app = createApp(App)
app.use(GlobalComponents)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(router)
app.mount('#app')
